package designPattern.decorator;

/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class Decorator implements SourceAble{
    private SourceAble source;

    public Decorator(SourceAble sourceAble){
        this.source = sourceAble;
    }

    public void method() {
        System.out.println("before");
        source.method();
        System.out.println("after");
    }
}
